package com.java2104.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_login_user",resultMap = "rmLoginUser")
public class LoginUser {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("login_name")
    private String loginName;//登录名
    private String password;//密码
    @TableField("login_status")
    private Integer loginStatus;//登录状态 1是用户，2是管理员
    @TableField(exist = false)
    private UserMessage userMessage;
}
